Generating Power of Lazy Semantics
نویسنده
چکیده
We discuss the use of the lazy evaluation scheme as coding tool in some algebraic manipulations. We show | on several examples | how to process the innnite power series or other open-ended data structures with co-recurrent algorithms, which simplify enormously the coding of recurrence relations or solving equations in the power series domain. The important point is not the \innnite" length of the data, but the fact that the algorithms use open recursion, and the user never thinks about the truncation.
منابع مشابه
LazyJ: Seamless Lazy Evaluation in Java
LazyJ is a backward-compatible extension of the Java programming language that allows programmers to seamlessly tap into the power and expressiveness of lazy evaluation. It does so by extending Java’s type system with lazy types. A variable of type lazy T (where T is any Java type) can hold a thunk which when evaluated will yield a value of type T. The existence of coercions between non-lazy an...
متن کاملMixed Lazy/Strict Graph Semantics
Explicitly enforcing strictness is often used by functional programmers as an important tool for making applications fit time and space efficiency requirements. Few functional programmers however, are familiar with the consequences of explicitly enforcing strictness for formal reasoning about their programs. Some “folklore” knowledge has emerged but this is based on experience rather than on ri...
متن کاملCoalgebraic Logic Programming: from Semantics to Implementation
Coinductive definitions, such as that of an infinite stream, may often be described by elegant logic programs, but ones for which SLD-refutation is of no value as SLD-derivations fall into infinite loops. Such definitions give rise to questions of lazy corecursive derivations and parallelism, as execution of such logic programs can have both recursive and corecursive features at once. Observati...
متن کاملGame Semantics for the Pure Lazy λ - calculus ?
In this paper we present a fully abstract game model for the pure lazy λ-calculus, i.e. the lazy λ-calculus without constants. In order to obtain this result we introduce a new category of games, the monotonic games, whose main characteristic consists in having an order relation on moves.
متن کاملSemantics of Lazy Higher-Order Functional and Logic Programming
Semantics of Lazy Higher-Order Functional and Logic Programmingt
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Theor. Comput. Sci.
دوره 187 شماره
صفحات -
تاریخ انتشار 1997